package com.fare.taluo.core.domain.crawl;

import java.util.Date;
/**
 * 抓取数据任务对象
 * <p>通过传递该对象，使适配器能解释出对应的要抓取参数
 * @author xiangsf 2013-5-22
 *
 */
public class CrawlTaskModel {
	
	private Date createTime = new Date();
	
	private Date startTime;
	
	private Date endTime;
	
	private String remarks;
	
	private int crawlCount = 0;
	/**
	 * 起始城市区域编码
	 */
	private String areaCode;
	/**
	 * 起始城市区域名称
	 */
	private String areaName;
	
	private String fromCity;
	
	private String fromCityName;
	
	private String toCity;
	
	private String toCityName;
	/**
	 * 航班日期，格式：yyyy-MM-dd
	 */
	private String flightDate;
	/**
	 * 返程日期，格式：yyyy-MM-dd
	 */
	private String returnFlightDate;
	
	private String grabChannel;
	
	private long grabChannelId;
	/**
	 * 渠道标识
	 */
	private String attachHbaseKey;

	public CrawlTaskModel(){}
	
	public CrawlTaskModel(String areaCode, String areaName, String fromCity,
			String fromCityName, String toCity, String toCityName,
			String flightDate, String grabChannel, long grabChannelId,
			String attachHbaseKey) {
		super();
		this.areaCode = areaCode;
		this.areaName = areaName;
		this.fromCity = fromCity;
		this.fromCityName = fromCityName;
		this.toCity = toCity;
		this.toCityName = toCityName;
		this.flightDate = flightDate;
		this.grabChannel = grabChannel;
		this.grabChannelId = grabChannelId;
		this.attachHbaseKey = attachHbaseKey;
		this.startTime = new Date();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public int getCrawlCount() {
		return crawlCount;
	}

	public void setCrawlCount(int crawlCount) {
		this.crawlCount = crawlCount;
	}

	public String getFromCity() {
		return fromCity;
	}

	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}

	public String getFromCityName() {
		return fromCityName;
	}

	public void setFromCityName(String fromCityName) {
		this.fromCityName = fromCityName;
	}

	public String getToCity() {
		return toCity;
	}

	public void setToCity(String toCity) {
		this.toCity = toCity;
	}

	public String getToCityName() {
		return toCityName;
	}

	public void setToCityName(String toCityName) {
		this.toCityName = toCityName;
	}

	public String getFlightDate() {
		return flightDate;
	}

	public void setFlightDate(String flightDate) {
		this.flightDate = flightDate;
	}

	public String getGrabChannel() {
		return grabChannel;
	}

	public void setGrabChannel(String grabChannel) {
		this.grabChannel = grabChannel;
	}

	public long getGrabChannelId() {
		return grabChannelId;
	}

	public void setGrabChannelId(long grabChannelId) {
		this.grabChannelId = grabChannelId;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getAttachHbaseKey() {
		return attachHbaseKey;
	}

	public void setAttachHbaseKey(String attachHbaseKey) {
		this.attachHbaseKey = attachHbaseKey;
	}

	public String getReturnFlightDate() {
		return returnFlightDate;
	}

	public void setReturnFlightDate(String returnFlightDate) {
		this.returnFlightDate = returnFlightDate;
	}
	
	
}
